package com.caesar.method_fa;

/**
 * @author caesar
 * @date 2025/7/9
 * @Description:员工
 * @apiNote
 */
public abstract class Employee {
    private String name;

    public Employee() {
    }

    public Employee(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public abstract double earning();//代表实发工资

    public abstract String getBasicInfo();//代表基本信息

    @Override
    public String toString() {
        return "员工基本信息：\t" + getBasicInfo() +
                "\t实发工资：" + earning();
    }
}
